<?php if (!defined('THINK_PATH')) exit(); /*a:7:{s:80:"D:\Software\phpstudy_pro\WWW\asks\public/../application/home\view\user\home.html";i:1638784018;s:67:"D:\Software\phpstudy_pro\WWW\asks\application\home\view\layout.html";i:1638770506;s:72:"D:\Software\phpstudy_pro\WWW\asks\application\home\view\common\meta.html";i:1636163362;s:74:"D:\Software\phpstudy_pro\WWW\asks\application\home\view\common\script.html";i:1636163172;s:74:"D:\Software\phpstudy_pro\WWW\asks\application\home\view\common\header.html";i:1636639625;s:72:"D:\Software\phpstudy_pro\WWW\asks\application\home\view\common\menu.html";i:1636524459;s:74:"D:\Software\phpstudy_pro\WWW\asks\application\home\view\common\footer.html";i:1636163196;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <!-- 样式 -->
    <meta charset="utf-8">
<title>基于 layui 的极简社区页面模版</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="keywords" content="fly,layui,前端社区">
<meta name="description" content="Fly社区是模块化前端UI框架Layui的官网社区，致力于为web开发提供强劲动力">
<link rel="stylesheet" href="/static/home/res/layui/css/layui.css">
<link rel="stylesheet" href="/static/home/res/css/global.css">
    <!-- js -->
    <script src="/static/home/res/layui/layui.js"></script>
<script>
    layui.cache.page = '';
    layui.cache.user = {
        username: '游客'
        , uid: -1
        , avatar: '/static/home/res/images/avatar/00.jpg'
        , experience: 83
        , sex: '男'
    };
    layui.config({
        version: "3.0.0"
        , base: '/static/home/res/mods/' //这里实际使用时，建议改成绝对路径
    }).extend({
        fly: 'index'
    }).use('fly');
</script>
</head>

<body>
    <!-- 头部 -->
    <div class="fly-header layui-bg-black">
  <div class="layui-container">
    <a class="fly-logo" href="<?php echo url('home/index/index'); ?>">
      <img src="/static/home/res/images/logo.png" alt="layui">
    </a>

    <ul class="layui-nav fly-nav-user">
      <?php if(!\think\Cookie::get('LoginUser')): ?>
      <!-- 未登入的状态 -->
      <li class="layui-nav-item">
        <a class="iconfont icon-touxiang layui-hide-xs" href="<?php echo url('home/user/index'); ?>"></a>
      </li>
      <li class="layui-nav-item">
        <a href="<?php echo url('home/index/login'); ?>">登入</a>
      </li>
      <li class="layui-nav-item">
        <a href="<?php echo url('home/index/register'); ?>">注册</a>
      </li>
      <?php else: ?>
      <!-- 登入后的状态 -->

      <li class="layui-nav-item">
        <a class="fly-nav-avatar" href="javascript:;">
          <cite class="layui-hide-xs"><?php echo \think\Cookie::get('LoginUser')['nickname']; ?></cite>
          <?php if(\think\Cookie::get('LoginUser')['auth'] == 1): ?>
          <i class="iconfont icon-renzheng layui-hide-xs" title="认证信息:<?php echo \think\Cookie::get('LoginUser')['nickname']; ?>"></i>
          <?php endif; ?>
          <i class="layui-badge fly-badge-vip layui-hide-xs">VIP<?php echo \think\Cookie::get('LoginUser')['vip']; ?></i>
          <img src="<?php echo \think\Cookie::get('LoginUser')['avatar']; ?>">
        </a>
        <dl class="layui-nav-child">
          <dd><a href="<?php echo url('home/user/profile'); ?>"><i class="layui-icon">&#xe620;</i>基本设置</a></dd>
          <dd><a href="<?php echo url('home/user/message'); ?>"><i class="iconfont icon-tongzhi" style="top: 4px;"></i>我的消息</a></dd>
          <dd>
            <a href="<?php echo url('home/user/index'); ?>"><i class="layui-icon"
                style="margin-left: 2px; font-size: 22px;">&#xe68e;</i>我的主页</a>
          </dd>
          <hr style="margin: 5px 0;">
          <dd><a href="<?php echo url('home/index/logout'); ?>" style="text-align: center;">退出</a></dd>
        </dl>
      </li>
      <?php endif; ?>
    </ul>
  </div>
</div>
    <!-- 内容 -->
    <div class="layui-container fly-marginTop fly-user-main">
  <ul class="layui-nav layui-nav-tree layui-inline" lay-filter="user">
    <li class="layui-nav-item">
        <a href="<?php echo url('home/user/index'); ?>">
            <i class="layui-icon">&#xe609;</i>
            我的主页
        </a>
    </li>
    <li class="layui-nav-item">
        <a href="<?php echo url('home/user/home'); ?>">
            <i class="layui-icon">&#xe612;</i>
            用户中心
        </a>
    </li>
    <!-- layui-this 选中样式 -->
    <li class="layui-nav-item">
        <a href="<?php echo url('home/user/profile'); ?>">
            <i class="layui-icon">&#xe620;</i>
            基本设置
        </a>
    </li>
    <li class="layui-nav-item">
        <a href="<?php echo url('home/user/message'); ?>">
            <i class="layui-icon">&#xe611;</i>
            我的消息
        </a>
    </li>
</ul>

<div class="site-tree-mobile layui-hide">
    <i class="layui-icon">&#xe602;</i>
</div>
<div class="site-mobile-shade"></div>

<div class="site-tree-mobile layui-hide">
    <i class="layui-icon">&#xe602;</i>
</div>
<div class="site-mobile-shade"></div>


  <div class="fly-panel fly-panel-user" pad20>
    <!--
    <div class="fly-msg" style="margin-top: 15px;">
      您的邮箱尚未验证，这比较影响您的帐号安全，<a href="activate.html">立即去激活？</a>
    </div>
    -->
    <div class="layui-tab layui-tab-brief" lay-filter="user">
      <ul class="layui-tab-title" id="LAY_mine">
        <li data-type="mine-jie" lay-id="index" class="<?php echo $postStatus==0?'layui-this' : ''; ?>">
          我发的帖（<span>89</span>）
        </li>
        <li data-type="collection" data-url="/collection/find/" lay-id="collection"
          class="<?php echo $postStatus==1?'layui-this' : ''; ?>">
          我收藏的帖（<span>16</span>）
        </li>
      </ul>
      <div class="layui-tab-content" style="padding: 20px 0;">
        <div class="layui-tab-item layui-show">
          <ul class="mine-view jie-row">
            <?php foreach($postList as $v): ?>
            <li>
              <a class="jie-title" href="../jie/detail.html" target="_blank"><?php echo $v['title']; ?></a>
              <i><?php echo $v['createtime']; ?></i>
              <a class="mine-edit" href="/jie/edit/8116">编辑</a>
              <em><?php echo $v['visit']; ?>阅/<?php echo $v['comment']; ?>答</em>
            </li>
            <?php endforeach; ?>
          </ul>
          <div id="LAY_page"></div>
        </div>
        <div class="layui-tab-item">
          <ul class="mine-view jie-row">
            <?php foreach($collectList as $v): ?>
            <li>
              <a class="jie-title" href="../jie/detail.html" target="_blank"><?php echo $v['tag']; ?></a>
              <i>收藏于23小时前</i>
            </li>
            <?php endforeach; ?>
          </ul>
          <div id="LAY_page1"></div>
        </div>
      </div>
    </div>
  </div>
</div>

<div class="fly-footer">
  <p><a href="http://fly.layui.com/" target="_blank">Fly社区</a> 2017 &copy; <a href="http://www.layui.com/"
      target="_blank">layui.com 出品</a></p>
  <p>
    <a href="http://fly.layui.com/jie/3147/" target="_blank">付费计划</a>
    <a href="http://www.layui.com/template/fly/" target="_blank">获取Fly社区模版</a>
    <a href="http://fly.layui.com/jie/2461/" target="_blank">微信公众号</a>
  </p>
</div>

<script src="../../res/layui/layui.js"></script>
<script>
  layui.cache.page = 'user';
  layui.cache.user = {
    username: '游客'
    , uid: -1
    , avatar: '../../res/images/avatar/00.jpg'
    , experience: 83
    , sex: '男'
  };
  layui.config({
    version: "3.0.0"
    , base: '../../res/mods/'
  }).extend({
    fly: 'index'
  }).use('fly');
</script>

</body>

</html>
    <!-- 底部 -->
    <div class="fly-footer">
    <p>2017 &copy; <a href="http://www.layui.com/" target="_blank">Fly技术社区</a></p>
</div>
</body>

</html>